package gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;

public class GameWindow extends JFrame{
	private GamePanel gPanel;
	private StatisticPanel sPanel;
	private BorderLayout layout;
	
	public GameWindow(){				
		gPanel = new GamePanel();
		sPanel = new StatisticPanel(gPanel);
		layout = new BorderLayout();
		this.setLayout(layout);
		setSize(800,800);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("Artificial life");	
		add(sPanel,BorderLayout.WEST);
		add(gPanel,BorderLayout.CENTER);
		
	}
}
